package com.songcha.module_main.ui.fragment.mine

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.songcha.library_base.interfaces.IApiResult
import com.songcha.library_base.mvvm.base.BaseViewModel
import com.songcha.library_network.bean.BaseBean

class MineViewModel(app:Application):BaseViewModel<MineRepository>(app) {
    var feedbackState = MutableLiveData(false)

    fun commitFeedback(content:String){
        handleApiDataObserver(repository!!.commitFeedback(content),object : IApiResult<BaseBean> {
            override fun onSuccess(bean: BaseBean) {
                feedbackState.value=true
            }

        })
    }


}